package com.tanhua.exception;

import com.tanhua.model.domain.ErrorResult;
import lombok.Data;

@Data
public class BusinessExecption extends RuntimeException {
    private ErrorResult errorResult;

    public BusinessExecption(ErrorResult errorResult) {
        super(errorResult.getErrMessage());
        this.errorResult = errorResult;
    }
}
